﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/ContentFrame.master" AutoEventWireup="true" CodeBehind="FacilityEdit.aspx.cs"
    Inherits="ETD.WebManagement.Admin.FacilityManage.FacilityEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="edit_form_container width800">




        <div class="form_filed_container width800">
            <label class="form_filed_label">设备代码：</label>
            <telerik:RadTextBox ID="txtCode" MaxLength="8" Width="600px" runat="server"></telerik:RadTextBox>
        </div>
        <div class="form_filed_container width800">
            <label class="form_filed_label">设备GUID：</label>
            <telerik:RadTextBox ID="txtNbDeviceID" MaxLength="100" Width="600px" runat="server"></telerik:RadTextBox>
        </div>
        <div class="form_filed_container width800">
            <label class="form_filed_label">设备物理ID：</label>
            <telerik:RadTextBox ID="txtNbNodeID" MaxLength="100" Width="600px" runat="server"></telerik:RadTextBox>
        </div>
        <div class="form_filed_container width800">
            <label class="form_filed_label">分组：</label>
            <telerik:RadComboBox ID="ddlFacilityGroup" runat="server" Width="600px">
            </telerik:RadComboBox>
        </div>
        <div class="form_filed_container width800">
            <label class="form_filed_label">机构：</label>

            <telerik:RadDropDownTree RenderMode="Lightweight" ID="rddtOrganization" runat="server" Width="600px" AutoPostBack="true"
                DefaultMessage="--请选择--" ExpandNodeOnSingleClick="true" OnEntryAdded="rddtOrganization_EntryAdded"
                EnableFiltering="false">

                <DropDownSettings OpenDropDownOnLoad="false" />
                <FilterSettings Highlight="Matches" EmptyMessage="Type here to filter" />
            </telerik:RadDropDownTree>
        </div>
        <div class="form_filed_container width800">
            <label class="form_filed_label">科室：</label>
            <telerik:RadComboBox ID="ddlSectionOffice" runat="server" Width="600px">
            </telerik:RadComboBox>
        </div>

        <div class="form_filed_container width800">
            <label class="form_filed_label">床号：</label>
            <telerik:RadTextBox ID="txtBedNumber" MaxLength="32" Width="600px" runat="server"></telerik:RadTextBox>
        </div>
        <%-- <div class="form_filed_container width800">
            <label class="form_filed_label">状态：</label>
            <telerik:RadComboBox ID="ddlFacilityStatus" runat="server" Width="600px">
            </telerik:RadComboBox>
        </div>--%>
        <div class="form_filed_container width800">
            <label class="form_filed_label">类型：</label>
            <telerik:RadComboBox ID="ddlFacilityType" runat="server" Width="600px">
            </telerik:RadComboBox>
        </div>

        <div class="form_filed_container width800">
            <label class="form_filed_label">投放时间：</label>
            <telerik:RadDatePicker runat="server" ID="rdpStartedDate" Width="600px"></telerik:RadDatePicker>
        </div>

        <div class="form_filed_container width800">
            <label class="form_filed_label">区域编号：</label>
            <telerik:RadTextBox ID="txtZoneNo" MaxLength="32" Width="600px" runat="server"></telerik:RadTextBox>
        </div>

        <div class="form_filed_container width800">
            <label class="form_filed_label">备注：</label>
            <telerik:RadTextBox ID="txtRemark" MaxLength="32" Width="600px" runat="server"></telerik:RadTextBox>
        </div>

        <div class="form_filed_container width800">
            <label class="form_filed_label">序号：</label>
            <telerik:RadNumericTextBox ID="txtOrderNumber" runat="server" Width="600px" Type="Number"
                NumberFormat-DecimalDigits="0" MinValue="0" MaxValue="100000000">
            </telerik:RadNumericTextBox>

        </div>
        <div class="form_filed_container width800 height_auto" id="imgCodeQrContainer" runat="server">
            <label class="form_filed_label">二维码：</label>
            <asp:Image runat="server" ID="imgCodeQr" Width="200" Height="200" />
        </div>
        <div class="form_action_button width500">
            <telerik:RadButton ID="btnOk" runat="server" Text="确定" OnClick="btnOk_Click" Width="120px">
            </telerik:RadButton>
            &nbsp; &nbsp;           
                            <telerik:RadButton ID="btnCancel" runat="server" Text="取消" Width="120px"
                                AutoPostBack="false"
                                OnClientClicked="onBtnCancelClick">
                            </telerik:RadButton>
        </div>
    </div>

    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
            function onBtnCancelClick() {
                onCancelButtonConfirm(redirectToFacilitysPage);
            }
            function redirectToFacilitysPage(isConfirm) {
                if (isConfirm) {
                    onCloseRadWindowManagerDefaultProcessing(true);
                }
            }


        </script>
    </telerik:RadCodeBlock>
</asp:Content>

